package com.csc.domain;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/*@Author HoangHung*/
@Entity
public class State implements Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	private Integer idState;
	private String nameState;

	@OneToMany(mappedBy = "idState")
	private List<Account> accountState;

	public List<Account> getAccountState() {
		return accountState;
	}

	public void setAccountState(List<Account> accountState) {
		this.accountState = accountState;
	}

	public Integer getIdState() {
		return idState;
	}

	public void setIdState(Integer idState) {
		this.idState = idState;
	}

	public String getNameState() {
		return nameState;
	}

	public void setNameState(String nameState) {
		this.nameState = nameState;
	}

	public State(Integer idState, String nameState) {
		super();
		this.idState = idState;
		this.nameState = nameState;
	}

	public State() {
		super();
	}

	public State(String nameState) {
		super();
		this.nameState = nameState;
	}

}
